package com.demo.woziqi.massageImp;

import com.demo.woziqi.message.Message;

/**
 * @Author 宋明松
 * @Version V1.0.0
 * @Date 2022-05-24
 *
 * 棋子信息消息，发送棋子的坐标及颜色
 */
public class ChessMessage extends Message {
    private int x; // 棋子坐标
    private int y;
    private Boolean color; // 棋子颜色

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public Boolean getColor() {
        return color;
    }

    public void setColor(Boolean color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "ChessMessage{" +
                "x=" + x +
                ", y=" + y +
                ", color=" + color +
                '}';
    }
}
